package com.shadow.demo.data.shiro.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("shiro_role_permission")
public class RolePermission {

    /** 主键id */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private String roleId;
    private String permissionId;

    public RolePermission(String roleId, String permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }
}